﻿
namespace TestDeal
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Data.Linq;
    using System.Data.Linq.Mapping;
    using System.Data.SqlClient;
    using System.Text;

    class Program
    {
        static void Main(string[] args)
        {
            /*
            string connectStr = "";

            DatabaseAccessor db = new DatabaseAccessor(connectStr);

            db.WriteUserData("James", "pass", "email");
            db.WriteUserData("Shawn", "pass2", "email2");

            string tableName = "DealData";
            string[] tableColumns = { "ItemName", "ItemPrice", "ItemSource" };
            string[,] items =    {{ "Deal1"   , "10.0"     , "Microsoft"},
                                  { "Deal2"   , "1000.0"   , "Apple"}};

            db.WriteData(tableName, tableColumns, items);

            db.ReadAndPrintData();
             * */

            DealseaSpider spider = new DealseaSpider();

            spider.GetDealInfo();

            Console.ReadLine();
        }
    }
}